package com.xjrsoft.module.base.mapper;

import com.xjrsoft.module.base.entity.XjrBaseAuthorize;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 授权功能表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2020-11-07
 */
public interface XjrBaseAuthorizeMapper extends BaseMapper<XjrBaseAuthorize> {

    int deleteAuthsFor(@Param("objectId") String objectId, @Param("objectType") Integer objectType,
                       @Param("userId") String userId, @Param("roleIds") List<String> roleIds, @Param("itemTypes") Integer[] itemTypes);
}
